﻿using System.Collections.Generic;

namespace WLWZGao6.APIHost.help
{
    public interface ITokenHelper
    {
        /// <summary> /// 根据一个对象通过反射提供负载，生成token /// </summary> /// <typeparam name="T"></typeparam> /// <param name="user"></param> /// <returns></returns>
        TnToken CreateToken<T>(T entity) where T : class; 
        /// <summary> /// 根据键值对提供负载，生成token /// </summary> /// <param name="keyValuePairs"></param> /// <returns></returns> 
        TnToken CreateToken(Dictionary<string, string> keyValuePairs);
    }
}
